<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>Template使用</h1>


{%  for i in abcd  %}
    <p>下标:{{ forloop.counter0 }}---  值:{{ i }}</p>

    {% empty %}
    <h1>暂无数据-请稍后!</h1>
{% endfor %}




<p>{{ name }}</p>
<p>{{ age }}</p>

<p>{{ son.name }}</p>

</body>
</html>